/**
 * 
 */
package com.sx.rbac.dao.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.sx.core.BaseDao;
import com.sx.feesunit.exception.SXException;
import com.sx.rbac.dao.ISysUserDao;
import com.sx.rbac.entity.SysUserEntity;

/**
 * @author Administrator
 *
 */
public class SysUserDao extends BaseDao implements ISysUserDao {
	private Log log = LogFactory.getLog(this.getClass());
	/* (non-Javadoc)
	 * @see com.sx.rbac.dao.ISysUserDao#findSysUserOnlyOne(com.sx.rbac.entity.SysUserEntity)
	 */
	public SysUserEntity findSysUserOnlyOne(SysUserEntity sysuser) {
		SysUserEntity user = null;
		try {
			user =  (SysUserEntity)getSqlMapClientTemplate().queryForObject("SysUser.findOneUserOnly",sysuser);
		} catch (Exception e) {
			log.error("获取用户信息",e);
		}
		return user;
	}

}
